<template>
  <div>
    <el-dialog
      v-if="questionType"
      title="提示"
      :visible="questionType"
      width="30%"
      @close="onClose"
    >
      <div>主考试卷: <span class="examColor">{{ mainName }}</span> </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="onClose">关闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    questionType: {
      type: Boolean,
      default: false
    },
    mainName: {
      type: String,
      default: ''
    }
  },
  methods: {
    onClose() {
      this.$parent.questionType = false
    }
  }
}
</script>

<style scoped>
.examColor{
  color: #409eff;
}
</style>
